<?php

use Doraemon\service\statSign\Basic as statSign;

class ServiceAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $obj_uid = $this->getRequest()->getQuery('obj_uid'. '');
        $order_no = $this->getRequest()->getQuery('order_no', '');

        $extend = [
            'type'    => \Doraemon\pockets\constInterface\PopupServiceConf::STYLE_FLOATING,
            'content' => [
                'link'     => 'hhz://',
                'img_url'  => 'http://img.hhz1.cn/Op-imageShow/445d130ge0ly0B500qc0gck?iv=1',
                'statSign' => statSign::genStatSign(statSign::MODULE_ORDER_DETAIL_CS_POPUPS, [
                    statSign::EXTEND_KEY_OBJ_UID      => $obj_uid,
                    statSign::EXTEND_KEY_OBJ_ID       => $order_no
                ]),
            ]
        ];

        $this->setSuccess(null, self::API_CODE_SUCCES, $extend);
    }
}
